package com.ruoyi.domain.production;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 工单工序记录对象 mes_work_order_process
 * 
 * @author ruoyi
 */
@Data
public class MesWorkOrderProcess extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    private Long recordId;

    /**
     * 工单ID
     */
    @Excel(name = "工单ID")
    private Long orderId;

    /**
     * 工单编号
     */
    @Excel(name = "工单编号")
    private String orderCode;

    /**
     * 工序ID
     */
    @Excel(name = "工序ID")
    private Long processId;

    /**
     * 工序编码
     */
    @Excel(name = "工序编码")
    private String processCode;

    /**
     * 工序名称
     */
    @Excel(name = "工序名称")
    private String processName;

    /**
     * 设备ID
     */
    @Excel(name = "设备ID")
    private Long equipmentId;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String equipmentName;

    /**
     * 操作工ID
     */
    @Excel(name = "操作工ID")
    private Long workerId;

    /**
     * 操作工姓名
     */
    @Excel(name = "操作工姓名")
    private String workerName;

    /**
     * 计划数量
     */
    @Excel(name = "计划数量")
    private Integer planQuantity;

    /**
     * 已加工数量
     */
    @Excel(name = "已加工数量")
    private Integer processedQuantity;

    /**
     * 合格数量
     */
    @Excel(name = "合格数量")
    private Integer qualifiedQuantity;

    /**
     * 不合格数量
     */
    @Excel(name = "不合格数量")
    private Integer unqualifiedQuantity;

    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 状态（0未开始 1进行中 2已完成 3已暂停）
     */
    @Excel(name = "状态", readConverterExp = "0=未开始,1=进行中,2=已完成,3=已暂停")
    private String status;
}